package cn.ynrcb.personnelfile.sysadmin.dao;


import cn.ynrcb.personnelfile.sysadmin.entity.SysCaptchaEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 验证码
 */
@Mapper
public interface SysCaptchaDao extends BaseMapper<SysCaptchaEntity> {

	@Select("select * from sys_captcha where uuid = #{id} order by expire_time desc limit 1")
	SysCaptchaEntity getCodeByID(String id);

}
